home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
DEMOS
/
DEMO4.ARC
/
!Demo4
/
h
/
extern
next >
Wrap
Text File
|
1992-02-10
|
2KB
|
74 lines
/******************************************************************************
* *
* extern.h (also structures and globals definitions) *
* *
******************************************************************************/
#define NULL 0
#define BLACK 0x00000000
#define BLUE 0x80808080
#define GREEN 0x23232323
/* externs for misc */
extern void SetTxtCurPos(int x, int y);
extern int GetClock(void);
extern void ReadMouse(int *x, int *y, int *b);
extern int Inkey(void);
extern void SetMousePos(int x, int y);
extern void SaveTraject(char *name,signed char traject[][4],int nb);
extern void LoadTraject(char *name,signed char traject[][4],int nb);
/* extern for horizon */
extern void PlotHorizon(Envi *envi,Object *obs,Object *hor);
extern int CollisionHorizon(Object *obs,Object *hor);
/* extern for sol */
typedef struct {
char *sprite;
int *altitudes;
vec4 *normals;
vec4 *nscreen;
vec4 *points;
vec4 *pscreen;
int tgx,tgz;
int pgx,pgz;
int scalex,scalez;
} Sol;
extern void InitSol(Sol *sol,char *spr,int *alt,int scalex,int scalez);
extern void PlotSol(Envi *envi,Object *obs,Object *obj,Sol *sol);
extern int CollisionSol(Object *obs,Object *sol,Sol *sold);
/* extern for plot */
typedef struct {
Object *object;
void (*plot)();
int (*collision)();
double d;
int type; /* grosse bidouille : 1 pour sol, 0 pour autre */
void *desc;
} ObjTab;
extern int ObjNb;
extern ObjTab *(*InitPlot(int nb));
extern void AddObject(ObjTab *table[],Object *obj,
void (*fp)(),int (*fc)(),int type,void *desc);
extern void Plot(ObjTab *table[],Envi *envi,Object *obs);
extern int Collision(ObjTab *table[],Object *obs);
/* extern for simu */
extern int dist;
extern int xorg;
extern int yorg;